package com.android.task5;

public class PanoramioRESTUrl {
	
	private static final String INFO_TAG = "Panoramio REST Url Info";
	
	private static final String baseUrl = "www.panoramio.com";
	
	
	private int northBorder;
	private int southBorder;
	private int westBorder;
	private int eastBorder;
	
	private String panoramioUrl;
	
	public PanoramioRESTUrl (int minx, int maxx, int miny, int maxy){
		this.northBorder = maxy;
		this.southBorder = miny;
		this.eastBorder = maxx;
		this.westBorder = minx;
		panoramioUrl = baseUrl;
		panoramioUrl += "http://www.panoramio.com/map/get_panoramas.php?order=popularity";
		panoramioUrl += "&set=public&from=0&to=100";
		panoramioUrl += "&minx=";
		panoramioUrl += westBorder;
		panoramioUrl += "&miny=";
		panoramioUrl += southBorder;
		panoramioUrl += "&maxx=";
		panoramioUrl += eastBorder;
		panoramioUrl += "maxy=";
		panoramioUrl += northBorder;
		panoramioUrl += "&size=medium";
		
	}
	
	public String  getPanoramioRESTSearchURL(){
		return panoramioUrl;
	}

}
